<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>sock: sock::http::HttpServer Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">sock
   &#160;<span id="projectnumber">v0.11</span>
   </div>
   <div id="projectbrief">C++ Network Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacesock.html">sock</a></li><li class="navelem"><a class="el" href="namespacesock_1_1http.html">http</a></li><li class="navelem"><a class="el" href="classsock_1_1http_1_1_http_server.html">HttpServer</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="classsock_1_1http_1_1_http_server-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">sock::http::HttpServer Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>HTTP服务器  
 <a href="classsock_1_1http_1_1_http_server.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="http__server_8h_source.html">http_server.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for sock::http::HttpServer:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classsock_1_1http_1_1_http_server.png" usemap="#sock::http::HttpServer_map" alt=""/>
  <map id="sock::http::HttpServer_map" name="sock::http::HttpServer_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structsock_1_1http_1_1_http_server_1_1_statics.html">Statics</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">状态  <a href="structsock_1_1http_1_1_http_server_1_1_statics.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a860fd0abc2724910c69ef3629c534b2c"><td class="memItemLeft" align="right" valign="top">typedef boost::function&lt; void(const <a class="el" href="namespacesock_1_1http.html#abc368575f73a91496777e7268d6e9041">HttpRequestPtr</a> &amp;, const <a class="el" href="namespacesock_1_1http.html#a1e8d565c94861f483cae82faa5d90ac8">HttpResponsePtr</a> &amp;)&gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_server.html#a860fd0abc2724910c69ef3629c534b2c">RequestCompletedFN</a></td></tr>
<tr class="separator:a860fd0abc2724910c69ef3629c534b2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd6c916273b2c92b0b478722480c77b3"><td class="memItemLeft" align="right" valign="top">typedef boost::function&lt; void(const <a class="el" href="namespacesock_1_1http.html#abc368575f73a91496777e7268d6e9041">HttpRequestPtr</a> &amp;, const <a class="el" href="namespacesock_1_1http.html#a1e8d565c94861f483cae82faa5d90ac8">HttpResponsePtr</a> &amp;, <a class="el" href="classsock_1_1http_1_1_http_server.html#a860fd0abc2724910c69ef3629c534b2c">RequestCompletedFN</a>)&gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_server.html#afd6c916273b2c92b0b478722480c77b3">RequestHandler</a></td></tr>
<tr class="separator:afd6c916273b2c92b0b478722480c77b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:abad0ccb06e49327aad09f5f9e18087be"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_server.html#abad0ccb06e49327aad09f5f9e18087be">HttpServer</a> (<a class="el" href="namespacesock_1_1net.html#a2ddc58693b405832076a3d76dc133671">sock::net::TcpConnectionFactoryPtr</a> connectionFactory=<a class="el" href="namespacesock_1_1net.html#a2ddc58693b405832076a3d76dc133671">sock::net::TcpConnectionFactoryPtr</a>(new <a class="el" href="classsock_1_1net_1_1_tcp_connection_factory.html">sock::net::TcpConnectionFactory</a>()))</td></tr>
<tr class="separator:abad0ccb06e49327aad09f5f9e18087be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14fb5346b90163686c1172b5a7e1b19a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_server.html#a14fb5346b90163686c1172b5a7e1b19a">~HttpServer</a> (void)</td></tr>
<tr class="separator:a14fb5346b90163686c1172b5a7e1b19a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a480de2e6bc2bf1020080da6bc270f52d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_server.html#a480de2e6bc2bf1020080da6bc270f52d">open</a> (const char *addr, int port, int backlog)</td></tr>
<tr class="memdesc:a480de2e6bc2bf1020080da6bc270f52d"><td class="mdescLeft">&#160;</td><td class="mdescRight">打开服务器  <a href="#a480de2e6bc2bf1020080da6bc270f52d">More...</a><br /></td></tr>
<tr class="separator:a480de2e6bc2bf1020080da6bc270f52d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a673124e65ae935396d49293dfba7a186"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_server.html#a673124e65ae935396d49293dfba7a186">run</a> (void)</td></tr>
<tr class="memdesc:a673124e65ae935396d49293dfba7a186"><td class="mdescLeft">&#160;</td><td class="mdescRight">运行服务器  <a href="#a673124e65ae935396d49293dfba7a186">More...</a><br /></td></tr>
<tr class="separator:a673124e65ae935396d49293dfba7a186"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1d4688c1a099c825847260c070a9770"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_server.html#ab1d4688c1a099c825847260c070a9770">stop</a> (void)</td></tr>
<tr class="memdesc:ab1d4688c1a099c825847260c070a9770"><td class="mdescLeft">&#160;</td><td class="mdescRight">停止服务器  <a href="#ab1d4688c1a099c825847260c070a9770">More...</a><br /></td></tr>
<tr class="separator:ab1d4688c1a099c825847260c070a9770"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34320f47f8e0b53b73d391d7be5d19b1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsock_1_1net_1_1_tcp_server.html">sock::net::TcpServer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_server.html#a34320f47f8e0b53b73d391d7be5d19b1">getTcpServer</a> (void)</td></tr>
<tr class="memdesc:a34320f47f8e0b53b73d391d7be5d19b1"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取内部TCP服务器  <a href="#a34320f47f8e0b53b73d391d7be5d19b1">More...</a><br /></td></tr>
<tr class="separator:a34320f47f8e0b53b73d391d7be5d19b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afcf96c05483817ee22bd4969bb0c7339"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_server.html#afcf96c05483817ee22bd4969bb0c7339">setSessionFactory</a> (<a class="el" href="namespacesock_1_1http.html#ab40d42e06f9b067d13943821f928e62e">HttpSessionFactoryPtr</a> factory)</td></tr>
<tr class="memdesc:afcf96c05483817ee22bd4969bb0c7339"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置SESSION工厂  <a href="#afcf96c05483817ee22bd4969bb0c7339">More...</a><br /></td></tr>
<tr class="separator:afcf96c05483817ee22bd4969bb0c7339"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a631a67f2cd6d9480cde15f3cc2d8bcfd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_server.html#a631a67f2cd6d9480cde15f3cc2d8bcfd">setRequestFactory</a> (<a class="el" href="namespacesock_1_1http.html#a109e52a7c286a1054ad5fe134a97ec09">HttpRequestFactoryPtr</a> factory)</td></tr>
<tr class="memdesc:a631a67f2cd6d9480cde15f3cc2d8bcfd"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置请求工厂  <a href="#a631a67f2cd6d9480cde15f3cc2d8bcfd">More...</a><br /></td></tr>
<tr class="separator:a631a67f2cd6d9480cde15f3cc2d8bcfd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af09722646b93b373a1b79d6b9a806093"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_server.html#af09722646b93b373a1b79d6b9a806093">setRequestParser</a> (<a class="el" href="namespacesock_1_1http.html#a10bd924b8a80c730376bfab54559cbcf">HttpRequestParserPtr</a> parser)</td></tr>
<tr class="memdesc:af09722646b93b373a1b79d6b9a806093"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置请求解析器  <a href="#af09722646b93b373a1b79d6b9a806093">More...</a><br /></td></tr>
<tr class="separator:af09722646b93b373a1b79d6b9a806093"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0f2bba4a15f790e18d186836d660f37"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_server.html#ab0f2bba4a15f790e18d186836d660f37">setRequestHandler</a> (<a class="el" href="classsock_1_1http_1_1_http_server.html#afd6c916273b2c92b0b478722480c77b3">RequestHandler</a> handler)</td></tr>
<tr class="memdesc:ab0f2bba4a15f790e18d186836d660f37"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置请求处理器  <a href="#ab0f2bba4a15f790e18d186836d660f37">More...</a><br /></td></tr>
<tr class="separator:ab0f2bba4a15f790e18d186836d660f37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50abc26a9889ac12ca9915a58d9e53d4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_server.html#a50abc26a9889ac12ca9915a58d9e53d4">getStatics</a> (<a class="el" href="structsock_1_1http_1_1_http_server_1_1_statics.html">Statics</a> &amp;statics)</td></tr>
<tr class="memdesc:a50abc26a9889ac12ca9915a58d9e53d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取服务器状态  <a href="#a50abc26a9889ac12ca9915a58d9e53d4">More...</a><br /></td></tr>
<tr class="separator:a50abc26a9889ac12ca9915a58d9e53d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a3e611175a551b64dda26f513067e0d04"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1http_1_1_http_server.html#a3e611175a551b64dda26f513067e0d04">HttpSession</a></td></tr>
<tr class="separator:a3e611175a551b64dda26f513067e0d04"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>HTTP服务器 </p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a class="anchor" id="a860fd0abc2724910c69ef3629c534b2c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef boost::function&lt;void(const <a class="el" href="namespacesock_1_1http.html#abc368575f73a91496777e7268d6e9041">HttpRequestPtr</a>&amp;, const <a class="el" href="namespacesock_1_1http.html#a1e8d565c94861f483cae82faa5d90ac8">HttpResponsePtr</a>&amp;)&gt; <a class="el" href="classsock_1_1http_1_1_http_server.html#a860fd0abc2724910c69ef3629c534b2c">sock::http::HttpServer::RequestCompletedFN</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="afd6c916273b2c92b0b478722480c77b3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef boost::function&lt;void(const <a class="el" href="namespacesock_1_1http.html#abc368575f73a91496777e7268d6e9041">HttpRequestPtr</a>&amp;, const <a class="el" href="namespacesock_1_1http.html#a1e8d565c94861f483cae82faa5d90ac8">HttpResponsePtr</a>&amp;, <a class="el" href="classsock_1_1http_1_1_http_server.html#a860fd0abc2724910c69ef3629c534b2c">RequestCompletedFN</a>)&gt; <a class="el" href="classsock_1_1http_1_1_http_server.html#afd6c916273b2c92b0b478722480c77b3">sock::http::HttpServer::RequestHandler</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="abad0ccb06e49327aad09f5f9e18087be"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">HttpServer::HttpServer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacesock_1_1net.html#a2ddc58693b405832076a3d76dc133671">sock::net::TcpConnectionFactoryPtr</a>&#160;</td>
          <td class="paramname"><em>connectionFactory</em> = <code><a class="el" href="namespacesock_1_1net.html#a2ddc58693b405832076a3d76dc133671">sock::net::TcpConnectionFactoryPtr</a>(new&#160;<a class="el" href="classsock_1_1net_1_1_tcp_connection_factory.html">sock::net::TcpConnectionFactory</a>())</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a14fb5346b90163686c1172b5a7e1b19a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">HttpServer::~HttpServer </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a50abc26a9889ac12ca9915a58d9e53d4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void HttpServer::getStatics </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structsock_1_1http_1_1_http_server_1_1_statics.html">Statics</a> &amp;&#160;</td>
          <td class="paramname"><em>statics</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取服务器状态 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">statics</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a34320f47f8e0b53b73d391d7be5d19b1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsock_1_1net_1_1_tcp_server.html">sock::net::TcpServer</a>&amp; sock::http::HttpServer::getTcpServer </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取内部TCP服务器 </p>

</div>
</div>
<a class="anchor" id="a480de2e6bc2bf1020080da6bc270f52d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool HttpServer::open </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>backlog</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>打开服务器 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">addr</td><td>监听地址 </td></tr>
    <tr><td class="paramname">port</td><td>监听端口 </td></tr>
    <tr><td class="paramname">backlog</td><td>接收队列长度 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>bool </dd></dl>

</div>
</div>
<a class="anchor" id="a673124e65ae935396d49293dfba7a186"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void HttpServer::run </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>运行服务器 </p>

</div>
</div>
<a class="anchor" id="a631a67f2cd6d9480cde15f3cc2d8bcfd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void sock::http::HttpServer::setRequestFactory </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacesock_1_1http.html#a109e52a7c286a1054ad5fe134a97ec09">HttpRequestFactoryPtr</a>&#160;</td>
          <td class="paramname"><em>factory</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置请求工厂 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">factory</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ab0f2bba4a15f790e18d186836d660f37"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void sock::http::HttpServer::setRequestHandler </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classsock_1_1http_1_1_http_server.html#afd6c916273b2c92b0b478722480c77b3">RequestHandler</a>&#160;</td>
          <td class="paramname"><em>handler</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置请求处理器 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">factory</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="af09722646b93b373a1b79d6b9a806093"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void sock::http::HttpServer::setRequestParser </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacesock_1_1http.html#a10bd924b8a80c730376bfab54559cbcf">HttpRequestParserPtr</a>&#160;</td>
          <td class="paramname"><em>parser</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置请求解析器 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">factory</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="afcf96c05483817ee22bd4969bb0c7339"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void sock::http::HttpServer::setSessionFactory </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacesock_1_1http.html#ab40d42e06f9b067d13943821f928e62e">HttpSessionFactoryPtr</a>&#160;</td>
          <td class="paramname"><em>factory</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置SESSION工厂 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">factory</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ab1d4688c1a099c825847260c070a9770"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void HttpServer::stop </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>停止服务器 </p>

</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a class="anchor" id="a3e611175a551b64dda26f513067e0d04"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="classsock_1_1http_1_1_http_session.html">HttpSession</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>E:/git/sock/sock/http/<a class="el" href="http__server_8h_source.html">http_server.h</a></li>
<li>E:/git/sock/src/http/<a class="el" href="http__server_8cc.html">http_server.cc</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.10
</small></address>
</body>
</html>
